package net.diaowen.common.utils;

import net.diaowen.dwsurvey.service.SurveyGroupManager;

/**
 * company: www.abc.com
 * Author: zhangyuting
 * Create Data: 2020/11/16
 */
public class PushThread extends Thread {


    SurveyGroupManager surveyGroupManager;

    String savePath;

    String surveyId;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getServeyName() {
        return serveyName;
    }

    public void setServeyName(String serveyName) {
        this.serveyName = serveyName;
    }

    String userName;

    String serveyName;
    String toUser;

    public SurveyGroupManager getSurveyGroupManager() {
        return surveyGroupManager;
    }

    public void setSurveyGroupManager(SurveyGroupManager surveyGroupManager) {
        this.surveyGroupManager = surveyGroupManager;
    }

    public String getToUser() {
        return toUser;
    }

    public void setToUser(String toUser) {
        this.toUser = toUser;
    }

    public String getSurveyId() {
        return surveyId;
    }

    public void setSurveyId(String surveyId) {
        this.surveyId = surveyId;
    }

    public String getSavePath() {
        return savePath;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }

    public void run() {

        System.out.println("PushThread is runing...........");

        try {
            surveyGroupManager.sendGroupWixinNotify(toUser,userName,serveyName);

        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println("PushThread is end....");


    }



}
